var express = require('express');

var router = express.Router();

const { addSales, login, register, getSales, deteSalesById, getUpdataOne, SureupdataOne } = require("../controllers/sales")
//新增销售
router.post('/addSales', addSales);
//登录注册
router.post("/login", login)
router.post("/register", register)
//获取获取有销售员
router.get('/getSales', getSales);
//删除销售员
router.post('/deteSalesById', deteSalesById);
//获取需要修改的销售员
router.get('/getUpdataOne', getUpdataOne);
//修改销售员信息
router.post('/SureupdataOne', SureupdataOne);

module.exports = router;
